package com.android.andsec;

import com.android.andsec.MainActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageButton;

public class MainActivity extends Activity {

	ImageButton message , data , firewall ;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		this.requestWindowFeature(Window.FEATURE_NO_TITLE) ;
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		message = (ImageButton)findViewById(R.id.message) ;
		data = (ImageButton)findViewById(R.id.data) ;
		firewall = (ImageButton)findViewById(R.id.firewall) ;
		message.setOnClickListener(new Button.OnClickListener(){  
			public void onClick(View v) {
				Intent intent = new Intent() ;
				intent.setClass(MainActivity.this, MessageActivity.class) ;
				startActivity(intent) ;
			}
		});
		data.setOnClickListener(new Button.OnClickListener(){  
			public void onClick(View v) {
				Intent intent = new Intent() ;
				intent.setClass(MainActivity.this, DataActivity.class) ;
				startActivity(intent) ;
			}
		}); 
		firewall.setOnClickListener(new Button.OnClickListener(){  
			public void onClick(View v) {
				Intent intent = new Intent() ;
				intent.setClass(MainActivity.this, FireWallActivity.class) ;
				startActivity(intent) ;
			}
		});
	} 
}